<?php 
include("..//access_user_class.php"); 

$my_access = new Access_user(false);

if (isset($_GET['activate']) && isset($_GET['ident'])) { 
	$my_access->auto_activation = true; 
	$my_access->activate_account($_GET['activate'], $_GET['ident']); 
}
if (isset($_GET['validate']) && isset($_GET['id'])) { 
	$my_access->validate_email($_GET['validate'], $_GET['id']);
}
if (isset($_POST['Submit'])) {
	$my_access->save_login = (isset($_POST['remember'])) ? $_POST['remember'] : "no"; 
	$my_access->count_visit = false; 
	$my_access->login_user($_POST['login'], $_POST['password']);
} 
$error = $my_access->the_msg; 
?>